//
//  NSString+Verifying.h
//  FashionTech
//
//  Created by JackieYip on 16/5/13.
//  Copyright © 2016年 mondial-d. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString * const kChinaCode;
extern NSString * const kHongKongCode;
extern NSString * const kMaCaoCode;
extern NSString * const kTaiwanCode;

@interface NSString (Verifying)
@property (readonly) BOOL isValidUserName;
@property (readonly) BOOL isValidPhoneCN;
@property (readonly) BOOL isValidPhoneHK;
@property (readonly) BOOL isValidPhoneMacao;
@property (readonly) BOOL isValidPhoneTaiwan;
@property (readonly) BOOL isValidId;
@property (readonly) BOOL isValidEmail;
@property (readonly) BOOL isValidRemark;
@property (readonly) BOOL isValidPassword;
@property (readonly) BOOL isValidACode; // Authentication Code
@property (readonly) BOOL isValidCCode; // Coupon code
@property (readonly) BOOL isValidICode; // Invitation Code
@property (readonly) BOOL isValidVCode; // Verification Code
@property (readonly) BOOL isValidAddress;
@property (readonly) BOOL isValidCompany;
@property (readonly) BOOL isValidReviewComments;
@property (readonly) BOOL isValidSpecs;
@property (readonly) BOOL isValidPrice;
@property (readonly) BOOL isValidCarriage;
@property (readonly) BOOL isValidTotalAmount;
@property (readonly) BOOL isValidQuantity;
@property (readonly) BOOL isValidTons;
@property (readonly) BOOL isValidWeight;
@property (readonly) BOOL isValidFavoriteProduct;
@property (readonly) BOOL isValidNumber;
@property (readonly) BOOL isValidPhoneIncludeAreaCode;
@property (readonly) BOOL isValidDecimal;
@property (readonly) BOOL isValidURL;
@property (readonly) BOOL isValidWWWURL;

- (NSString *)stringFormatForPreviousZero;
- (BOOL)isValidPhoneWithAreaCode:(NSString *)areaCode;
@end
